﻿using Customer.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Customer.Infrstructre.ProcurementManager
{
    /// <summary>
    /// 采购管理仓储层
    /// </summary>
    public class ProcurementRepository : BaseRepository<Procurement>, IProcurementRepository
    {

        public ProcurementRepository(EFCoreDBcontext db) : base(db) { }


        public async Task<int> AddAsync(Procurement entity)
        {
            return await base.AddAsync(entity);
        }

        public async Task<int> DelAsync(Procurement entity)
        {
            return await base.DelAsync(entity);
        }

        public async Task<List<Procurement>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }

        public async Task<List<Procurement>> GetAsync(Expression<Func<Procurement, bool>> expr)
        {
            return await base.GetAsync(expr);
        }

        public async Task<Procurement> GetModelAsync(int id)
        {
            return await base.GetModelAsync(id);
        }

        public async Task<int> Update(Procurement entity)
        {
            return await base.Update(entity);
        }

    }
}
